package Exple.sysManger.service;

import Exple.sysManger.dao.UserMapping;
import Exple.sysManger.pojo.UserList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserImplementsService implements UserInterfaceService{
    @Autowired
    UserMapping userMapping;

    @Autowired
    UserList userList;

    @Override
    public List<UserList> selectUser() {
        return userMapping.selectUserAll();
    }

    @Override
    public void insertUser(UserList userList) {
        userMapping.insertUserById(userList);
    }
}
